﻿using System;

namespace WebSocketAndPrint
{
    public class SocketMessage
    {
        public String Type { get; set; }
        public String Text { get; set; }

        public SocketMessage(String type,String text)
        {
            this.Type = type;
            this.Text = text;
        }

        public String GetJson()
        {
            return JsonUtil.ToJSON(this);
        }
    }
}
